﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  xmlns:tkt="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
  xmlns:System="clr-namespace:System;assembly=mscorlib"
  mc:Ignorable="d"
> 
  



<Style TargetType="Button" x:Key="BackButtonStyle">
		
		<Setter Property="Template">
			<Setter.Value>
				
				<ControlTemplate TargetType="Button">
          
						<Grid>
							<VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">

								<VisualState x:Name="Normal"/>

								<VisualState x:Name="MouseOver">
									<Storyboard>
                    <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="kresbaTlacikta"/>
									</Storyboard>
								</VisualState>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>

								</VisualStateGroup>

              <VisualStateGroup x:Name="FocusStates">

                <VisualState x:Name="Focused"/>

                <VisualState x:Name="Unfocused"/>

              </VisualStateGroup>

            </VisualStateManager.VisualStateGroups>
							<Viewbox>
								<Grid>
									<Ellipse Fill="White" Margin="0" Opacity="0.725" />
                <Ellipse x:Name="kresbaTlacikta" Fill="#ffC1FfcC" Margin="20" Opacity="0" IsHitTestVisible="False"/>
									<Path
										IsHitTestVisible="False"
										Data="M354,180 C354,276.09753 276.09753,354 180,354 C83.902451,354 6,276.09753 6,180 C6,83.902451 83.902451,6 180,6 C276.09753,6 354,83.902451 354,180 z M275.5,174.27 L87.499985,174.27  M179.99998,74.27 L87.499985,174.27 179.99998,274.27"
										Margin="20" Stretch="Fill" Stroke="#FF3D3D3D"
										StrokeThickness="17" UseLayoutRounding="False"
										StrokeStartLineCap="Round" StrokeEndLineCap="Round"
									/>
								</Grid>
							</Viewbox>
						</Grid>
					
        </ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>



<Style TargetType="Button" x:Key="RunAppButton">
		
		<Setter Property="Template">
			<Setter.Value>
				
				<ControlTemplate TargetType="Button">
          
						<Grid>
							<VisualStateManager.VisualStateGroups>
              <VisualStateGroup x:Name="CommonStates">

								<VisualState x:Name="Normal"/>

								<VisualState x:Name="MouseOver">
									<Storyboard>
                    <ColorAnimation Duration="0" To="#ffC1FfcC" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)" Storyboard.TargetName="kresbaTlacikta" d:IsOptimized="True"/>
									</Storyboard>
								</VisualState>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>

								</VisualStateGroup>

              <VisualStateGroup x:Name="FocusStates">

                <VisualState x:Name="Focused"/>

                <VisualState x:Name="Unfocused"/>

              </VisualStateGroup>

            </VisualStateManager.VisualStateGroups>
							<Viewbox>
								<Grid>
									<Ellipse Fill="White" Margin="0" Opacity="0.725"/>
									<Path
                    IsHitTestVisible="False"
										x:Name="kresbaTlacikta"
										Data="M354,180 C354,276.09753 276.09753,354 180,354 C83.902451,354 6,276.09753 6,180 C6,83.902451 83.902451,6 180,6 C276.09753,6 354,83.902451 354,180 z M95,174 L265, 174 M180,174 L180,89 M180,174 L180,267"
										Margin="20" Stretch="Fill" Stroke="#FF3D3D3D"
										StrokeThickness="29" UseLayoutRounding="False"
										StrokeStartLineCap="Round" StrokeEndLineCap="Round" Fill="#00C1FfcC"
									/>
								</Grid>
							</Viewbox>
						</Grid>
					
        </ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

  
  
	<Style TargetType="tkt:BusyIndicator">
		<Setter Property="BusyContent" Value="Please wait..."/>
		<Setter Property="IsTabStop" Value="False"/>
		<Setter Property="OverlayStyle">
			<Setter.Value>
				<Style TargetType="Rectangle">
					<Setter Property="Fill" Value="White"/>
					<Setter Property="Opacity" Value="0.5"/>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="ProgressBarStyle">
			<Setter.Value>
				<Style TargetType="ProgressBar">
					<Setter Property="IsIndeterminate" Value="True"/>
					<Setter Property="Height" Value="15"/>
					<Setter Property="Margin" Value="8,0,8,8"/>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="DisplayAfter" Value="00:00:00.1"/>
		<Setter Property="HorizontalAlignment" Value="Stretch"/>
		<Setter Property="VerticalAlignment" Value="Stretch"/>
		<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
		<Setter Property="VerticalContentAlignment" Value="Stretch"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="tkt:BusyIndicator">
					<Grid>
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="VisibilityStates">
								<VisualState x:Name="Hidden">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="busycontent">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="overlay">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Collapsed</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Visible">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="busycontent">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="overlay">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<Visibility>Visible</Visibility>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="BusyStatusStates">
								<VisualState x:Name="Idle">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="content">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<System:Boolean>True</System:Boolean>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Busy">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.001" Storyboard.TargetProperty="(Control.IsEnabled)" Storyboard.TargetName="content">
											<DiscreteObjectKeyFrame KeyTime="00:00:00">
												<DiscreteObjectKeyFrame.Value>
													<System:Boolean>False</System:Boolean>
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<ContentControl x:Name="content" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"/>
						<Rectangle x:Name="overlay" Style="{TemplateBinding OverlayStyle}"/>
						<ContentPresenter x:Name="busycontent">
							<Grid HorizontalAlignment="Center" VerticalAlignment="Center">
								<Border BorderThickness="1" Background="White" CornerRadius="2">
									<Border.BorderBrush>
										<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
											<GradientStop Color="#FFA3AEB9" Offset="0"/>
											<GradientStop Color="#FF8399A9" Offset="0.375"/>
											<GradientStop Color="#FF718597" Offset="0.375"/>
											<GradientStop Color="#FF617584" Offset="1"/>
										</LinearGradientBrush>
									</Border.BorderBrush>
									<Border CornerRadius="1.5" Margin="1">
										<Border.Background>
											<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
												<GradientStop Color="#FFF6F8F9" Offset="0.02"/>
												<GradientStop Color="#FFB8B8B8" Offset="0.996"/>
											</LinearGradientBrush>
										</Border.Background>
										<Grid MinWidth="150">
											<Grid.RowDefinitions>
												<RowDefinition/>
												<RowDefinition Height="Auto"/>
											</Grid.RowDefinitions>
											<ContentPresenter ContentTemplate="{TemplateBinding BusyContentTemplate}" Content="{TemplateBinding BusyContent}" Margin="8"/>
											<ProgressBar Grid.Row="1" Style="{TemplateBinding ProgressBarStyle}"/>
										</Grid>
									</Border>
								</Border>
							</Grid>
						</ContentPresenter>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
  
  
  
</ResourceDictionary>